Conversation
Enforce a per-user resume limit (MAX_RESUMES = 3): - createResume counts the user's rows (RLS-scoped) and throws ResumeLimitError at the cap, so the limit holds regardless of the caller. - The create actions check the count first and, when at the cap, send the user back to the hub with a banner instead of erroring. - The home hub shows the count (n/3), disables "+ new resume" at the cap, and shows an explanatory banner (also when a template "use" was blocked). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
🔍 Preview deployment ready: https://binarysemaphore-e8co3nxrv-shahidios-projects.vercel.app Commit 3b13bf7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v0.2.0.
Added
createResume(RLS-scoped count →ResumeLimitError); the hub shows the count(n/3), disables "+ new resume" at the cap, and shows a banner (including when a template create was blocked). Single constantMAX_RESUMESindb.ts.docs/auth.mddocumenting the auth architecture: Supabase Auth +@supabase/ssrhttpOnly cookies +getUser()server-side validation + Postgres RLS for authorization.Verification
typecheck,lint,buildpass. Limit UI verified in light + dark.🤖 Generated with Claude Code